package com.synnex.wms.service;
/**
 * 护工 接口实现类，service
 * */
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.synnex.wms.mapper.HugongMapper;
import com.synnex.wms.pojo.Hugong;

@Service
@Transactional
public class HugongService {

	@Autowired
	private HugongMapper HugongMapper;
	
	public int deleteByPrimaryKey(Integer id){
		return HugongMapper.deleteByPrimaryKey(id);
	}

    public int insert(Hugong record){
    	return HugongMapper.insert(record);
    }

    public int insertSelective(Hugong record){
    	return HugongMapper.insertSelective(record);
    }

    public Hugong selectByPrimaryKey(Integer id){
    	return HugongMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Hugong record){
    	return HugongMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Hugong record){
    	return HugongMapper.updateByPrimaryKey(record);
    }
    
    public Hugong selectByNameAndPword(String Hugongname){
    	return HugongMapper.selectByNameAndPword(Hugongname);
    }
  
    public List<Hugong> selectBy(){
    	return HugongMapper.selectBy();
    }
    
    public List<Hugong> showlist(Hugong Hugong){
    	return HugongMapper.showlist(Hugong);
    }
    public int pagecount(Hugong Hugong){
    	return HugongMapper.pagecount(Hugong);
    }
    
    
}
